package com.fishing.service;

import java.util.List;
import java.util.Map;
import com.fishing.entity.Admin;


public interface AdminService {
	int deleteByPrimaryKey(Integer id)throws Exception;

    int insert(Admin record)throws Exception;

    Admin selectByPrimaryKey(Integer id)throws Exception;

    List<Admin> selectAll(Map<String,Object> map)throws Exception;

    int updateByPrimaryKey(Admin record)throws Exception;
    
    int updatePwd(Admin record)throws Exception;
    
    int updateState(Integer id, byte state)throws Exception;
    
    int updateForAudit(Admin record)throws Exception;
    
    int selectExist(Admin record)throws Exception;
    
    Admin selectByLoginId(String loginId)throws Exception;
    
    
    Admin selectByOpenIdAndUnionId(String openIdWx, String unionIdWx)throws Exception;
    
    int insertByThird(Admin record)throws Exception;
    
    
    int test(String name)throws Exception;
}
